<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>BoooLee Re Toolkit</title>
<style type="text/css">
<!--
body, td, th {
	color: #000;
}
body {
	background-color: #666;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
</head>
<body>
<table width="10" border="0" align="center">
  <tr>
    <td><script type="text/javascript"><!--
google_ad_client = "pub-9327496148469855";
/* 120x600, 创建于 09-9-5 */
google_ad_slot = "2815197035";
google_ad_width = 120;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td>
    <td><form id="form1" name="form1" method="post" action=".">
      <table width="800" border="0" align="center" cellpadding="2" cellspacing="2">
        <tr>
          <td colspan="3" align="right" bgcolor="#FFFFFF"><h1><strong><em>BoooLee Re Toolkit V1.1</em></strong></h1></td>
        </tr>
        <tr>
          <td colspan="3" align="right" bgcolor="#FFFFFF"><label>
            <input name="function" type="radio" id="chack_match" value="match" onclick="form1.submit()"
        {% ifequal function 'match' %}
        checked="checked"
        {% endifequal %}
        />
            Match |
            <input type="radio" name="function" id="chack_matchall" value="matchall" onclick="form1.submit()"
        {% ifequal function 'matchall' %}
        checked="checked"
        {% endifequal %}
        />
            Match All |
            <input type="radio" name="function" id="chack_split" value="split" onclick="form1.submit()"
        {% ifequal function 'split' %}
        checked="checked"
        {% endifequal %}        
        />
            Split |
            <input type="radio" name="function" id="chack_replace" value="replace" onclick="form1.submit()"
        {% ifequal function 'replace' %}
        checked="checked"
        {% endifequal %}        
        />
            Replace |
            <input type="radio" name="function" id="chack_replaceall" value="replaceall" onclick="form1.submit()"
        {% ifequal function 'replaceall' %}
        checked="checked"
        {% endifequal %}        
        />
            Replace All </label></td>
        </tr>
        <tr>
          <td colspan="3" bgcolor="#C1C5A5"><strong>正则表达式</strong>
            <select name="list_Shortcuts1" id="list_Shortcuts1">
              <option value=".">.</option>
              <option>\d</option>
              <option>\D</option>
              <option>\s</option>
              <option>\S</option>
              <option>\w</option>
              <option>\W</option>
              <option>\number</option>
              <option>(?P=name)</option>
              <option>-------------</option>
              <option>*</option>
              <option>*?</option>
              <option>+</option>
              <option>+?</option>
              <option>?</option>
              <option>??</option>
              <option>{m}</option>
              <option>{m,n}</option>
              <option>{m,n}?</option>
              <option>-------------</option>
              <option>^</option>
              <option>$</option>
              <option>\b</option>
              <option>\B</option>
              <option>\A</option>
              <option>\Z</option>
              <option>-------------</option>
              <option>(...)</option>
              <option>(?P&lt;name&gt;...)</option>
              <option>(?:...)</option>
              <option>(?#...)</option>
              <option>(?=...)</option>
              <option>(?!...)</option>
              <option>(?&lt;=...)</option>
              <option>(?&lt;!...)</option>
            </select>
            帮助</td>
        </tr>
        <tr>
          <td colspan="2"><textarea name="text_regular_expression" rows="10" style="width:100%" id="text_regular_expression">{{ ReExpression }}</textarea></td>
        </tr>
        <tr>
          <td colspan="2" bgcolor="#FFFFFF"><label>
            <input name="option_I" type="checkbox" id="option_I" value="True"
		{% if ignore_case %}
        checked="checked"
        {% endif %}
        />
          </label>
            Ignore case
            <label>
              <input name="option_M" type="checkbox" id="option_M" value="True" 
		{% if Multi_line %}
        checked="checked"
        {% endif %}  
	  />
            </label>
            Multi-line
            <label>
              <input name="option_S" type="checkbox" id="option_S" value="True" 
   		{% if Single_line %}
        checked="checked"
        {% endif %}
        />
            </label>
            Single-line
            <label>
              <input name="option_V" type="checkbox" id="option_V" value="True" 
		{% if Verbose %}
        checked="checked"
        {% endif %}  
  />
            </label>
            Verbose
            <label>
              <input name="option_U" type="checkbox" id="option_U" value="True"
		{% if Unicode %}
        checked="checked"
        {% endif %}  
  />
            </label>
            Unicode
            <label>
              <input name="option_L" type="checkbox" id="option_L" value="True"
		{% if Locale %}
        checked="checked"
        {% endif %}  
  />
            </label>
            Locale
            <label> |   	
              {% ifequal function 'split' %}
              Max Split
              <input name="textbox_maxsplit" type="text" id="textbox_maxsplit" size="5" value='{{ MaxSplit }}'/>
              {% endifequal %}</label></td>
        </tr>
        <tr>
          <td width="1530" bgcolor="#C1C5A5"><strong>搜索文本</strong>
            <label>
              <input name="textbox_url" type="text" id="textbox_url" value="{{ Url }}" size="50" />
              <input name="check_getweb" type="checkbox" id="check_getweb" value="True" 
          {% if GetWeb %}
          checked="checked"
          {% endif %}
          />
              抓取内容</label></td>
          <td width="162" align="right" bgcolor="#C1C5A5" nowrap="nowrap"> 文档编码：
            <label>
              <input name="textbox_coding" type="text" id="textbox_coding" value="{{ Coding }}" size="10" />
            </label></td>
        </tr>
        <tr>
          <td colspan="2"><textarea name="text_searchtext" id="text_searchtext" rows="10" style="width:100%">{{ SearchText }}</textarea></td>
        </tr>
        {% if replace %}
        <tr>
          <td colspan="3"><table width="100%" border="0">
            <tr>
              <td bgcolor="#FFCCFF" style="width:50%"><strong>替换</strong>
                <label>
                  <select name="list_Shortcuts2" id="list_Shortcuts2">               
                  {% for groupid in GroupIDs %}
                  <option value="\g<{{ groupid }}>">组 {{ groupid }} : \{{ groupid }}</option>
                  {% endfor %}
                  {% for groupname in GroupNames%}
                  <option value="\g<{{ groupname }}>">组 '{{ groupname }}' : \g&lt;{{ groupname }}&gt;</option>
                  {% endfor %}
                  </select>
                  Count
                  <input name="textbox_count" type="text" id="textbox_count" value="{{ Count }}" size="5" />
                </label></td>
              <td bgcolor="#FFCCFF"><strong>替换结果</strong></td>
            </tr>
            <tr>
              <td><textarea name="text_replacement" rows="10" id="text_replacement" style="width:99%">{{ Replacement }}</textarea></td>
              <td><textarea name="text_replacedtext" rows="10" id="text_replacedtext"  style="width:99%">{{ ReplaceText }}</textarea></td>
            </tr>
          </table></td>
        </tr>
        {% endif %}
        <tr>
          <td colspan="3" bgcolor="#3399FF"><strong>结果
            <input type="submit" name="button_test" id="button_test" value="测试" />
          </strong></td>
        </tr>
        <tr>
          <td colspan="3"><textarea name="text_results" id="text_results" rows="15" style="width:100%">{{ Results }}</textarea></td>
        </tr>
        <tr>
          <td colspan="3" align="center">copyright (c) booolee.cnblogs.com | email:booolee@gmail.com | QQ:25737305</td>
        </tr>
      </table>
      <p>&nbsp;</p>
      <p><br />
        <br />
      </p>
      <p><br />
      </p>
      <p><br />
        <br />
      </p>
    </form></td>
  </tr>
</table>
</body>
</html>
